Ext.define('App.datacollection.executelog.model.ExecuteLogDataViewModel', {
    extend: 'Ext.app.ViewModel',
    alias: 'viewmodel.ExecuteLogDataViewModel',
    requires: [],
    data: {
        columns: [{
            header: 'ID',
            dataIndex: 'id',
            hidden: true
        }, {
            header: '日志',
            dataIndex: 'log'
        }, {
            header: '操作日期',
            dataIndex: 'datetime',
            width: 20
        }],
        search: {
            simpleSearch: false,
            advancedSearch: false
        }
    },
    stores: {
        Query: {
            autoLoad: false,
            pageSize: 25,
            remoteSort: false,
            sorters: [{
                property: 'cdt',
                direction: 'ASC'
            }],
            proxy: {
                type: 'majax',
                url: 'datacollection/executelog/query',
                reader: {
                    type: 'json',
                    rootProperty: 'data',
                    totalProperty: 'total'
                }
            }
        }
    }
});